import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      //用户登录
      path: "/",
      name: "Login",
      component: () => import("../views/Login.vue"),
    },
    {
      path: "/Main",
      name: "Main",
      component: () => import("../views/MainView.vue"),
      children: [
        {
          path: "/RolesList",
          name: "RolesList",
          component: () => import("../views/Roles/RolesListView.vue"),
        },
        {
          //角色列表
          path: "/RolesListView",
          name: "RolesListView",
          component: () => import("../views/Roles/RolesListView.vue"),
        },
        {
          //个人用户添加
          path: "/AddUser",
          name: "AddUser",
          component: () => import("../views/Users/AddUser.vue"),
        },
        {
          //用户列表
          path: "/QueryUserList",
          name: "QueryUserList",
          component: () => import("../views/Users/QueryUserList.vue"),
        },
        {
          //个人信息修改
          path: "/PersonalInforEdit",
          name: "PersonalInforEdit",
          component: () => import("../views/Users/PersonalInforEditView.vue"),
        },
        {
          //角色权限管理
          path: "/PermissionsList",
          name: "PermissionsList",
          component: () =>
            import("../views/Permissions/PermissionsListView.vue"),
        },
        {
          //企业添加
          path: "/EnterpriseAdd",
          name: "EnterpriseAdd",
          component: () => import("../views/Enterprises/EnterpriseAdd.vue"),
        },
        {
          //企业显示
          path: "/EnterpriseShow",
          name: "EnterpriseShow",
          component: () => import("../views/Enterprises/EnterpriseShow.vue"),
        },
        {
          //部门添加
          path: "/AddDepartment",
          name: "AddDepartment",
          component: () => import("../views/Department/AddDepartment.vue"),
        },
        {
          //部门列表显示
          path: "/ShowDepartment",
          name: "ShowDepartment",
          component: () => import("../views/Department/ShowDepartment.vue"),
        },
        {
          //栋舍管理
          path: "/ShowBedroom",
          name: "ShowBedroom",
          component: () => import("../views/BedRoom/ShowBedroom.vue"),
        },
        {
          //公猪初期添加
          path: "/AddInfancies",
          name: "AddInfancies",
          component: () => import("../views/Infancies/AddInfancies.vue"),
        },
        {
          //公猪初期列表
          path: "/ShowInfancies",
          name: "ShowInfancies",
          component: () => import("../views/Infancies/ShowInfancies.vue"),
        },
        {
          //种母期初显示
          path: "/ShowBreedingSows",
          name: "ShowBreedingSows",
          component: () => import("../views/BreedingSows/ShowBreedingSows.vue"),
        },
        {
          //种母期初添加
          path: "/AddBreedingSows",
          name: "AddBreedingSows",
          component: () => import("../views/BreedingSows/AddBreedingSows.vue"),
        },
        {
          //种公种母档案添加
          path: "/MaleArchivesAdd",
          name: "MaleArchivesAdd",
          component: () =>
            import("../views/PigArchive/MaleArchivesAddView.vue"),
        },
        {
          //后裔档案添加
          path: "/ProgenyAdd",
          name: "ProgenyAdd",
          component: () =>
            import("../views/PigArchive/ProgenyAddView.vue"),
        },
        {
          //猪只档案列表
          path: "/PigArchiveList",
          name: "PigArchiveList",
          component: () => import("../views/PigArchive/PigArchiveListView.vue"),
        },
        {
          //猪只档案详情
          path: "/PigfileDetails",
          name: "PigfileDetails",
          component: () => import("../views/PigArchive/PigfileDetailsView.vue"),
        },
        {
          //母猪分娩列表
          path: "/ShowFarrowings",
          name: "ShowFarrowings",
          component: () => import("../views/Farrowings/ShowFarrowings.vue"),
        },
        {
          //母猪分娩添加
          path: "/AddFarrowings",
          name: "AddFarrowings",
          component: () => import("../views/Farrowings/AddFarrowings.vue"),
        },
        {
          //母猪分娩详情修改
          path: "/UpdateFarrorings",
          name: "UpdateFarrorings",
          component: () => import("../views/Farrowings/UpdateFarrorings.vue"),
        },

        {
          //母猪添加
          path: "/AddFarrowings",
          name: "AddFarrowings",
          component: () => import("../views/Farrowings/AddFarrowings.vue"),
        },

        {
          //期初添加
          path: "/AddPig",
          name: "AddPig",
          component: () => import("../views/PigBabys/AddPig.vue"),
        },
        {
          //期初显示
          path: "/ShowPig",
          name: "ShowPig",
          component: () => import("../views/PigBabys/ShowPig.vue"),
        },
        {
          //猪只转舍列表添加
          path: "/QueryChangeHouse",
          name: "QueryChangeHouse",
          component: () => import("../views/ChangeHouse/QueryChangeHouse.vue"),
        },
        {
          //猪只转舍列表
          path: "/QueryChangeHouse",
          name: "QueryChangeHouse",
          component: () => import("../views/ChangeHouse/QueryChangeHouse.vue"),
        },
        {
          //猪只转舍添加
          path: "/AddChangeHouse",
          name: "AddChangeHouse",
          component: () => import("../views/ChangeHouse/AddChangeHouse.vue"),
        },
        { //猪场管理
          path: "/AddPigFarm",
          name: "AddPigFarm",
          component: () => import("../views/PigFarm/AddPigFarm.vue"),
        },
        {
          //种猪历史添加
          path: "/PigHistoryAdd",
          name: "PigHistoryAdd",
          component: () => import("../views/PigHistory/PigHistoryAddView.vue"),
        },
        {
          //种猪历史列表
          path: "/PigHistoryList",
          name: "PigHistoryList",
          component: () => import("../views/PigHistory/PigHistoryListView.vue"),
        },
        {
          //种猪配种添加
          path: "/PigsBreedingAdd",
          name: "PigsBreedingAdd",
          component: () => import("../views/PigsBreeding/PigsBreedingAddView.vue"),
        },
        {
          //种猪配种列表
          path: "/PigsBreedingList",
          name: "PigsBreedingList",
          component: () => import("../views/PigsBreeding/PigsBreedingListView.vue"),
        },
        {
          //仔猪断奶添加
          path: "/PigsWeaningAdd",
          name: "PigsWeaningAdd",
          component: () => import("../views/PigsWeaning/PigsWeaningAddView.vue"),
        },
        {
          //仔猪断奶列表
          path: "/PigsWeaningList",
          name: "PigsWeaningList",
          component: () => import("../views/PigsWeaning/PigsWeaningListView.vue"),
        },
        {
          //猪只称重添加
          path: "/PigsWeighingAdd",
          name: "PigsWeighingAdd",
          component: () => import("../views/PigsWeighing/PigsWeighingAddView.vue"),
        },
        {
          //猪只称重列表
          path: "/PigsWeighingList",
          name: "PigsWeighingList",
          component: () => import("../views/PigsWeighing/PigsWeighingListView.vue"),
        },
         { //种母妊检--列表页面
          path: "/PrenatalCheckupsList",
          name: "PrenatalCheckupsList",
          component: () => import("../views/PrenatalCheckups/PrenatalCheckupsList.vue"),
        },
        {
          //种母妊检--新增页面
          path: "/CreatePrenatalCheckups",
          name: "CreatePrenatalCheckups",
          component: () => import("../views/PrenatalCheckups/CreatePrenatalCheckups.vue"),
        },
        {
          //种母妊检--修改页面
          path: "/DetailPrenatalCheckup",
          name: "DetailPrenatalCheckup",
          component: () => import("../views/PrenatalCheckups/DetailPrenatalCheckup.vue"),
        },

        {
          //后裔转种添加
          path: "/AddScionChanges",
          name: "AddScionChanges",
          component: () => import("../views/ScionChanges/AddScionChanges.vue"),
        },
        {
          //断奶显示
          path: "/ShowAblactation",
          name: "ShowAblactation",
          component: () => import("../views/Ablactation/ShowAblactation.vue"),
        },
        {
          //断奶添加
          path: "/AddAblactation",
          name: "AddAblactation",
          component: () => import("../views/Ablactation/AddAblactation.vue"),
        },
        {
          //体测
          path: "/AddHeight",
          name: "AddHeight",
          component: () => import("../views/Height/AddHeight.vue"),
        },
        {
          //体测
          path: "/ShowHeight",
          name: "ShowHeight",
          component: () => import("../views/Height/ShowHeight.vue"),
        },

        { //体测
          path: "/AddPigFarm",
          name: "AddPigFarm",
          component: () => import("../views/PigFarm/AddPigFarm.vue"),
        },
        {
          //淘汰添加
          path: "/AddEliminate",
          name: "AddEliminate",
          component: () => import("../views/Eliminate/AddEliminate.vue"),
        },
        {
          //淘汰显示
          path: "/ShowEliminate",
          name: "ShowEliminate",
          component: () => import("../views/Eliminate/ShowEliminate.vue"),
        },
        {
          //猪只死亡添加
          path: "/AddPigDeath",
          name: "AddPigDeath",
          component: () => import("../views/PigDeaths/AddPigDeath.vue"),
        },
        {
          //猪只死亡列表
          path: "/QueryPigDeaths",
          name: "QueryPigDeaths",
          component: () => import("../views/PigDeaths/QueryPigDeaths.vue"),
        },
        {
          //实时存栏图表
          path: "/Real",
          name: "Real",
          component: () => import("../views/Echarts/Real.vue"),
        },
        {
          //后裔转种列表
          path: "/QueryScionChanges",
          name: "QueryScionChanges",
          component: () => import("../views/ScionChanges/QueryScionChanges.vue"),
        },
        {
          //销售添加
          path: "/AddSale",
          name: "AddSale",
          component: () => import("../views/Sale/AddSale.vue"),
        },
        {
          //分娩提示
          path: "/ShowDeliveryTips",
          name: "ShowDeliveryTips",
          component: () => import("../views/DeliveryTips/ShowDeliveryTips.vue"),
        },
        {
          //猪只采购添加
          path: "/PigProcurementAdd",
          name: "PigProcurementAdd",
          component: () => import("../views/PigProcurement/PigProcurementAddView.vue"),
        },
        {
          //猪只采购列表
          path: "/PigProcurementList",
          name: "PigProcurementList",
          component: () => import("../views/PigProcurement/PigProcurementListView.vue"),
        },
        {
          //供应商添加
          path: "/SupplierAdd",
          name: "SupplierAdd",
          component: () => import("../views/SuppliersManagement/SupplierAddView.vue"),
        },
        {
          //供应商列表
          path: "/SupplierList",
          name: "SupplierList",
          component: () => import("../views/SuppliersManagement/SupplierListView.vue"),
        },
        {
          //种母配怀统计
          path: "/PigPregnancy",
          name: "PigPregnancy",
          component: () => import("../views/Statistics/PigPregnancyStatistics.vue"),
        },
        {
          //种母生产统计
          path: "/PigProduction",
          name: "PigProduction",
          component: () => import("../views/Statistics/PigProductionStatistics.vue"),
        },
        {
          //猪只销售
          path: "/ShowSale",
          name: "ShowSale",
          component: () => import("../views/Sale/ShowSale.vue"),
        },
        {
          //客户新增
          path: "/AddClient",
          name: "AddClient",
          component: () => import("../views/Client/AddClient.vue"),
        },
        {
          //品相添加
          path: "/AddCondition",
          name: "AddCondition",
          component: () => import("../views/Conditions/AddCondition.vue"),
        },
        {
          //品相列表
          path: "/ShowCondition",
          name: "ShowCondition",
          component: () => import("../views/Conditions/ShowCondition.vue"),
        },
        {
          //种母妊检--首次妊检提示
          path: "/InitialPregnanceyTest",
          name: "InitialPregnanceyTest",
          component: () => import("../views/DeliveryTips/InitialPregnanceyTest.vue")
        },
        {
          //首页
          path: "/HomePage",
          name: "HomePage",
          component: () => import("../views/HomePage.vue")
        },
      ],
    },
  ],
});

export default router;
